package com.example.administrator.himalaya.testPackage;

import android.text.TextUtils;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;
import com.squareup.picasso.RequestCreator;

/**
 * Created by liuchao on 2016/12/5.
 */

public class PicLoad {
    public static ImageView loadImage(ImageView view, String url){
        if (!TextUtils.isEmpty(url)) {
            RequestCreator creator = Picasso.with(view.getContext())
                    .load(url);
            creator.into(view);
        }
       return view;

    }
}
